const modules = import.meta.glob('./**/*.svg', { eager: true })
const icons: Record<string, any> = {}
Object.keys(modules).forEach((k) => {
  const key = k.replace('./', '').replace('.svg', '').replace('/', '_')
  icons[key] = (modules as any)[k].default
})

export const iconsNames: Record<string, string> = {
  adv_banner: '横幅广告',
  adv_beforePlaying: '播放前广告',
  adv_carousel: '轮播广告',
  adv_floatingLayer: '底部浮层广告',
  adv_popup: '弹窗广告',
  adv_suspend: '暂停广告',
  comp_briefIntroduction: '简介',
  comp_anthology: '选集',
  comp_appBar: '顶部搜索栏',
  comp_titleBar: '标题栏',
  comp_articleList: '文章列表',
  comp_articleSettings: '文章设置',
  comp_atlasList: '图集列表',
  comp_albumVideoList: '专辑视频列表',
  comp_bottomFunction: '底部功能',
  comp_briefIntroductionContent: '简介内容',
  comp_bulletinBoard: '公告栏',
  comp_categoriesGrid: '分类宫格',
  comp_categoriesTags: '分类标签',
  comp_categoriesVideoList: '分类视频列表',
  comp_collectionReading: '收藏阅读',
  comp_filmRating: '影片评分',
  comp_filterCriteria: '筛选条件',
  comp_filterResultList: '筛选结果列表',
  comp_filterTabBar: '筛选标签栏',
  comp_filterTabStyle: '筛选标签样式',
  comp_fixedVideoList: '固定视频列表',
  comp_freeAtlas: '免费图集',
  comp_hotAtlas: '热门图集',
  comp_guessYouLike: '猜你喜欢',
  comp_hottestVideoList: '最热视频列表',
  comp_latestVideoList: '最新视频列表',
  comp_moreVideoList: '更多视频列表',
  comp_movieList: '影人列表',
  comp_participatingWorks: '参与作品',
  comp_playCount: '播放次数',
  comp_popularAtlas: '收费图集',
  comp_searchBar: '顶部搜索栏',
  comp_tabs: '选项卡',
  comp_topFunction: '顶部功能',
  comp_videoList: '视频列表',
  comp_globalSetting: '全局设置'
}

export default icons
